﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TextOrderParse : UIOrderParse {
    public TextOrderParse(BasePanel panel) : base(panel) {

    }

    //绑定数据
    public void Data(BaseUIElement element) {
        panel.uiData.Bind(element.uiElementName, (TextUIElement)element);
        panel.uiData.Set(element.uiElementName, element.GetComponent<Text>().text);
    }
}
